<?
$smarty=new Smarty();
if(!ANTIHACK) die("ANTIHACK...");
$smarty->assign("nameact","Nhóm thành viên");

$g=query("select * from `group`");
$i=0;
while($rg=fetch($g))
{
	$i++;
	$rg['count']=$i;
	$mem=query("select id from user where `group`=".$rg[id]);
	$rmem=numrows($mem);
	$rg['groupmember'] = $rmem;
	$group[]=$rg;
}
$smarty->assign("group",$group);
$smarty->display("group.htm");
?>